package com.xhl.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xhl.dao.IOrderDao;
import com.xhl.vo.OrderVO;
import com.xhl.vo.Pager;

@Service
public class OrderService implements IOrderDao {

    @Autowired
    IOrderDao iorderDao;

    @Override
    public List<OrderVO> queryOrder(Pager<?> p) {
        return iorderDao.queryOrder(p);
    }

    @Override
    public long count() {
        return iorderDao.count();
    }

    @Override
    public List<OrderVO> queryOrderInfo(Pager<?> p) {
        return iorderDao.queryOrderInfo(p);
    }

    @Override
    public void orderUpdateShipments(String oid) {
        iorderDao.orderUpdateShipments(oid);
    }

    @Override
    public List<OrderVO> queryOrderById(String uid, String status) {
        return iorderDao.queryOrderById(uid, status);
    }

    @Override
    public void confirmReceipt(String oid) {
        iorderDao.confirmReceipt(oid);
    }

    @Override
    public OrderVO queryOrderOid(String oid) {
        return iorderDao.queryOrderOid(oid);
    }

    @Override
    public void waitDelivery(String oid) {
        iorderDao.waitDelivery(oid);
    }

    @Override
    public void orderAccomplish(String oid) {
        iorderDao.orderAccomplish(oid);
    }

    @Override
    public long orderMaxId() {
        return iorderDao.orderMaxId();
    }

    @Override
    public void addOrder(OrderVO ovo) {
        iorderDao.addOrder(ovo);
    }


}
